package fr.gedos.ged.analyser.binders.interfaces;

import java.io.IOException;

import fr.gedos.ged.analyser.recognition.adapter.exceptions.PictureNotWellWritingException;

public interface Binder {
	/**
	 * This method will scan all paths added by method addPath
	 * and if there are new files in it, will treat those files
	 * @throws InterruptedException 
	 * @throws PictureNotWellWritingException 
	 * @throws IOException 
	 */
	public void scanPaths() throws IOException, PictureNotWellWritingException, InterruptedException;
	/**
	 * add a path to the list of path to scan
	 * @param absolutePath
	 * 		- The path of the new HotFolder
	 */
	public void addPath(String absolutePath);
	/**
	 * remove a path from the list of path to scan
	 * @param absolutePath
	 * 		- The path of the HotFolder to disable
	 */
	public void removePath(String absolutePath);
}
